home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / doc / class1.txt next >
Text File  |  1994-08-01  |  34KB  |  661 lines

  1.  
  2.                    SUPRA TECHNICAL SUPPORT BULLETIN 
  3.                CLASS 1 FAX COMMANDS FOR SUPRA FAXMODEMS 
  4.                               6/19/92
  5.  
  6. Supra Corporation
  7. 7101 Supra Drive SW, Albany, OR  97321
  8. General (503) 967-2400 / Sales (503) 967-2410 / Fax (503) 967-2401
  9. Supra Tech Support  (503) 967-2440  8:00am - 5:00pm PST, M-F
  10.  
  11. Supra BBS........(503) 967-2444  24 Hours
  12. CompuServe.......76004,565
  13. BIX..............SupraCorp
  14. America Online...SupraCorp2
  15. GEnie............SupraTech
  16. AppleLink........D2456
  17. UseNet EMail.....supratech%supra.uucp@cs.orst.edu
  18.             .....supra!supratech@cs.orst.edu
  19.  
  20. SUPRA's DISCLAIMER:
  21.    The following information has been taken from Rockwell's RC144AC 
  22. manual. It has not been taken from the CCITT Class 1 documentation, 
  23. which is copyrighted by the CCITT.  This information is provided for 
  24. educational purposes only.  To fully understand this information 
  25. requires a through knowledge of the T.4 fax image and the T.30 fax 
  26. session protocol standards.  Due to the nature of this information, 
  27. Supra's engineers and technical support can not and will not provide any 
  28. help or support on this information.  We STRONGLY urge anyone attempting 
  29. to develop fax software to get the required documentation from Global 
  30. Engineering or the TIA.
  31.  
  32. SHORT HISTORY OF CLASS 1 AND 2
  33.   In 1988 the CCITT TR29.2 committee accepted the Class 1 standard for 
  34. communication between fax software and fax modems.  The committee also 
  35. voted on, but did not accept for various technical reasons, the Class 2 
  36. standard.  A year later, they had slightly revised the standard but 
  37. again did not accept it.  Software and hardware manufactures decided to 
  38. unofficially adopt this standard until the TR29.2 committee could 
  39. develop an acceptable standard.  Since so many companies have used the 
  40. unofficial standard, the TR29.2 committee has designated that when the 
  41. standard is officially adopted it will be known as Class 2.0.  Over the 
  42. last year or so, the TR29.2 committee has voted on several revisions to 
  43. the Class 2 standard.  Their last vote was early May '92.  A no vote for 
  44. technical reasons was entered.  The TR29.2 committee is now reviewing 
  45. the technical issues that were raised.  At this time, Supra has not 
  46. heard of a projected date for the next ballot.
  47.  
  48. WHAT IS THE DIFFERENCE BETWEEN CLASS 1 AND 2
  49.   Class 1 fax software handles all of the T.4 fax image and T.30 session 
  50. protocol information and timing.  Thus, the ability to communicate 
  51. properly with various fax machines is more a function of the software 
  52. than the fax modem.  Class 2 fax software generates a T.4  fax page 
  53. image and sends it to the fax modem a page at a time.  The fax modem 
  54. then handles the T.30 session protocol information and timing.  This 
  55. relieves the computer's cpu from some work.  The ability to communicate 
  56. properly with various fax machines is more a function of the fax modem 
  57. than the software.  However, to further complicate matters, class 2 fax 
  58. software can issue Class 1 commands and take over some of the duties of 
  59. the Class 2 fax modem.  
  60.  
  61.   When customers have a problem communicating correctly with a fax 
  62. machine/modem, it can be very difficult to determine which is at fault,
  63.  the software or the hardware.  Supra has collected numerous Class 1 and 
  64. 2 fax software for a variety of different computers.  When we receive a 
  65. report of a problem, we use these programs to determine if it is a 
  66. software or hardware problem.  If it is a hardware problem, we notify 
  67. Rockwell, otherwise we notify the software company.
  68.  
  69. BUG REPORTS
  70.   Supra is dedicated to making the best product for the best price.  If 
  71. you feel that you have found a bug, please fax or send a letter to the 
  72. attention of:
  73.  
  74.    SUPRA V32/BIS FAX BUG
  75.  
  76. Please fully describe the 'bug' (specific steps to generate it, phone 
  77. numbers to call, make and model of fax/modem, rev of our ROM (from I3 
  78. command) ), why you believe that it is a bug, what specific section of 
  79. Class 2 applies to this bug and how you would like the bug to be fixed.  
  80. Please remember that there are issues that have not been addressed or 
  81. settled by the TR29.2 committee in the Class 2 specifications. (i.e. how 
  82. the DCD and DTR lines are handled while in fax mode.)
  83.  
  84.  
  85. WHERE TO GET OFFICIAL FAX DOCUMENTATION
  86.  
  87.   Telecommunications Industry Association
  88.   1722 Eye St. NW
  89.   Suite 440
  90.   Washington, DC  20006
  91.  
  92. You need to ask for:
  93.  
  94.     Class 1 documentation - EIA/TIA-578
  95.     Class 2 documentation - Electronic Industries Association and 
  96. Telecommunications Industry Association TIA Project Number 2388, 
  97. Asynchronous Facsimile DCE Control Standard, Service Class 2, TR-29.2 
  98. Committee Letter Ballot
  99.  
  100.   Global Engineering Documents                     
  101.   2805 McGaw Ave
  102.   Irvin, CA  92713 
  103.   800-854-7179
  104.   714-261-1455
  105.   714-261-7892 (Fax)     
  106.  
  107. You need to ask for:
  108.  
  109.     EIA/TIA-578 - Class 1 documentation
  110.     EIA/TIA-592 - Class 2 documentation
  111.     CCITT v7.3  - T.1 - T.90 standards, includes T.4 & T.30
  112.  
  113. (The cost for the above docs will run close to $200.  But Global will 
  114. also update you on any changes or additions to those standards you 
  115. purchase.)
  116.  
  117. Global Engineering will not have the Class 2 documentation until approx. 
  118. a month after the TR29.2 committee accepts it.  Most of those companies 
  119. which have developed Class 2 fax software either sit on the TR29.2 
  120. committee or know someone who does.  It may be possible to receive the 
  121. documentation from the TIA if you present a credible proposal.  Supra 
  122. has no knowledge of what this proposal should consist of or who you need 
  123. to talk to.
  124.  
  125.  
  126. See also "CLASS 1 FAX COMMANDS FOR SUPRA FAXMODEMS" which is available
  127. on Supra BBS.
  128.  
  129.  
  130.  
  131. 6 FAX CLASS 1 OPERATION
  132.  
  133. 6.1  FAX I/O PROCESSING
  134.  
  135. The fax I/O interface supports asynchronous serial and parallel 
  136. interfaces.  The interface rate is 19200 bps.  Start and stop elements 
  137. are removed from the transmit data and added to the receive data.  Both 
  138. transmit and receive data is buffered.  Flow control using XON/XOFF 
  139. (DC1/DC3) or RTS/CTS is provided.
  140.  
  141. Unique control character strings are identified, filtered, or reinserted 
  142. into the I/O data stream.  These control characters and their resultant 
  143. action are described below.
  144.  
  145. 6.1.1 DTE TO MODEM TRANSMIT DATA STREAM
  146.  
  147. Characters Detected       Action taken
  148.  
  149. <DLE><data>               Delete <DLE><data> characters
  150.  
  151. <DLE><ETX>                Recognize as a string terminator, and take 
  152.                           appropriate action
  153.  
  154. <DLE><DLE>                Replace with single <DLE> character
  155.  
  156. 6.1.2 MODEM TO DTE RECEIVE DATA STREAM
  157.  
  158. Characters Detected     Action taken
  159.  
  160. <DLE>                   Insert extra <DLE> ahead of <DLE>
  161.  
  162. The modem also identifies the end of a frame by inserting <DLE><ETX> 
  163. into the data stream after the FCS bytes.
  164.  
  165. 6.1.3  FAX MODE SELECTION
  166.  
  167. Fax class 1 commands are identified in Table 6-1 and defined in Table 6-
  168. 2.  Fax modes and rates are determined by the AT+F commands as described 
  169. in Table 6-2.
  170.  
  171. 6.1.4  FAX ORIGINATION
  172.  
  173. Origination of fax calls is made using the ATD command.  Upon completion 
  174. of the dial function, a calling tone at 1100 Hz, with a cadence of 0.5 
  175. seconds ON, and 3 seconds off is transmitted.  The modem automatically 
  176. enters mode +FRH=3 and sends the CONNECT message to the DTE when FSK 
  177. flags are detected from the remote.
  178.  
  179. 6.1.5  FAX ANSWERING
  180.  
  181. Answering of fax calls is identical to answering of data calls with the 
  182. exception that the modem enters the fax handshaking mode instead of the 
  183. data handshaking mode after going off-hook.  If +FAE=0, the modem , 
  184. after sending answer tone, automatically enters fax mode (+FTH=3), sends 
  185. the CONNECT message to the DTE, and starts sending FSK flags.  If 
  186. +FAE=1, the modem determines if the caller is a data modem or fax modem 
  187. and sends the DATA or FAX result code, respectively, to the DTE.
  188.  
  189. Table 6-1.  Fax Class 1 Commands
  190.  
  191. -----------------------------------------------------------
  192. |   Command        Function                               |
  193. |---------------------------------------------------------|
  194. |   SERVICE CLASS ID                                      |
  195. |---------------------------------------------------------|
  196. |   +FCLASS=       Service Class                          |
  197. |---------------------------------------------------------|
  198. |   FAX CLASS 1 COMMANDS                                  |
  199. |---------------------------------------------------------|
  200. |   +FTS=n         Stop Transmission and Wait             |
  201. |   +FRS=n         Receive Silence                        |
  202. |   +FTM=n         Transmit Data                          |
  203. |   +FRM=n         Receive Data                           |
  204. |   +FTH=n         Transmit Data with HDLC Framing        |      
  205. |   +FRH=n         Receive Data with HDLC Framing         |
  206. |---------------------------------------------------------|
  207.  
  208.  
  209. 6.1.6  FAX CONTROL TRANSMISSION
  210.  
  211. Fax control transmission is initiated by the AT+FTH=n command.  After 
  212. this command is issued, the modem generates the CONNECT message and 
  213. transmits carrier in the modulation scheme specified by the parameter n.  
  214. The modem then transmits HDLC flags for a minimum of 1 second.  The 
  215. modem continues to transmit the HDLC flags until it receives a character 
  216. from the DTE.
  217.  
  218. When characters are received from the DTE, the modem adds start and end 
  219. flags, performs zero-bit insertion, generates FCS, and deletes 
  220. <DLE><chr> character pairs before transmitting the characters to the 
  221. remote fax machine.  Each <DLE><DLE> sequence is transmitted as a single 
  222. <DLE>.  <DLE><ETX> is considered as the end of frame marker and is not 
  223. transmitted.  All data received from the DTE afar <DLE><ETX> is ignored 
  224. by the modem until the modem generates either the CONNECT, OK, or ERROR 
  225. result code.
  226.  
  227. If no more data is in the transmit buffer and the final bit was a 1 (bit 
  228. 4 of the second byte received from the DTE), the modem generates the OK 
  229. result code and returns to the command mode.  If the final bit was a 0, 
  230. the modem generates the CONNECT message and waits for further data from 
  231. the DTE while transmitting HDLC flags.  If no more data is received 
  232. before 5 seconds elapse, the modem drops carrier, goes on-hook, and 
  233. generates the ERROR result code.
  234.  
  235. 6.1.7  FAX CONTROL RECEPTION
  236.  
  237. Fax control reception is initiated using the AT+FRH=n command.  After 
  238. this command is issued, the modem looks for carrier in the modulation 
  239. scheme specified by the parameter n.  If no carrier is detected before 
  240. the period of time specified by register S7 expires, the modem generates 
  241. the NO CARRIER message and returns to command mode.  If carrier is 
  242. detected that is not the one specified by the parameter n, the modem 
  243. generates the +FCERROR message and returns to the command mode.  If the 
  244. specified carrier is detected, the modem generates the CONNECT message 
  245. and enters the HDLC receive mode.
  246.  
  247. In HDLC receive mode, the modem receives HDLC frames from the remote fax 
  248. machine, strips the flags, performs zero-bit deletion, performs error 
  249. checking, and handles <DLE><chr> character pairs before passing the data 
  250. to the DTE.  The modem prefixes each <DLE> character with another <DLE> 
  251. character before sending it to the DTE.  After the last byte in the 
  252. frame, the modem sends <DLE><ETX> to the DTE marking the end of the 
  253. frame.  The modem then generates either the OK message if errors were 
  254. detected (FCS is incorrect), and returns to command mode.
  255.  
  256. While in command mode, the modem continues to receive data in the 
  257. selected modulation scheme, and sends the data after sending the CONNECT 
  258. message to the DTE when the DTE reissues the +FRH command with the same 
  259. parameter.  If the DTE issues the +FRH command with a different 
  260. parameter, the modem clears all buffers and proceeds as described 
  261. previously.
  262.  
  263. If carrier is lost while in command mode and the DTE reissues the +FRH 
  264. command with the same parameter, and there is no data in the buffer, the 
  265. modem sends the ERROR result code to the DTE and returns to the command 
  266. mode.  If there is data in the buffer, the modem sends the next frame of 
  267. buffered data to the DTE, followed by <DLE><ETX>, and either the ERROR 
  268. result code if errors were detected or the OK result code if no errors 
  269. were detected.  The modem then returns to command mode.
  270.  
  271. The modem concludes an error is detected if the carrier is lost for any 
  272. period of time during or before the reception of a frame.  If carrier is 
  273. lost for a time period longer than the time specified by the register 
  274. S10, the modem finishes delivering the data in the receive buffer (if 
  275. any) to the DTE, sends <DLE><ETX>, generates the ERROR message, and 
  276. returns to command mode.  All subsequent data received from the remote 
  277. is discarded.
  278.  
  279. If the modem detects a frame abort sequence (seven consecutive ones with 
  280. no zero insertion) while it is waiting for a frame beginning flag (it 
  281. was receiving HDLC flags), it will wait for the HDLC flags again until 
  282. either carrier is lost, or the DTE aborts the process by sending an 
  283. abort character or by dropping DTR with &D2 in effect.  If the frame 
  284. abort sequence is detected while the modem is receiving a frame it 
  285. finishes delivering the data in the receive buffer (if any) to the DTE, 
  286. sends <DLE><ETX>, generates the ERROR message, and returns to command 
  287. mode.  The modem keeps looking for HDLC flags followed by more data from 
  288. the remote, with the selected modulation scheme.
  289.  
  290. If the modem detects a receive buffer overflow condition, it concludes 
  291. that there was a FCS error in that frame.  The modem will receive more 
  292. frames only if a starting flag is detected and there is room in the 
  293. receive buffer.  If a starting flag is detected and there is no room in 
  294. the buffer, the modem discards all data in that frame.
  295.  
  296. If the modem receives any character from the DTE after the +FRH command 
  297. (except flow control characters if software flow control is in effect), 
  298. or if the modem detects a high-to-low transition of the DTR signal while 
  299. &D1 is in effect, it sends <DLE><ETX> to the DTE, generates OK result 
  300. code, and returns to command mode.  The receive buffer is cleared and 
  301. all data received from the remote is discarded.  If the modem detects a 
  302. DTR drops while &D2 is in effect, it goes on-hook, sends <DLE><ETX> to 
  303. the DTE, generates OK result code, and returns to command mode.  If the 
  304. modem detects a DTR drop while &D3 is in effect, the modem performs a 
  305. warm reset.
  306.  
  307. 6.1.8  FAX DATA TRANSMISSION
  308.  
  309. Fax Data transmission is initiated by the AT+FTM=n command.  After this command is issued, the modem generates the CONNECT message and transmits carrier in the modulation scheme specified by the parameter n.  The 
  310. modem then transmits constant 1 bits for a minimum of one second and 
  311. continues to transmit constant 1 bits until it receives a character from 
  312. the DTE.
  313.  
  314. When data is received from the DTE, the modem deletes start and stop 
  315. bits and deletes all <DLE><chr> character pairs before transmitting the 
  316. data to the remote.  Each <DLE><DLE> sequence is transmitted as a single 
  317. <DLE>.  <DLE><ETX> is considered as the end of stream marker, and is not 
  318. transmitted.  All data received from the DTE after the <DLE><ETX> is 
  319. ignored by the modem until the modem generates either the CONNECT, OK or 
  320. ERROR result code.
  321.  
  322. If no more data is in the transmit buffer, and the last transmitted 
  323. character was not an ASCII NULL, the modem generates the OK result code 
  324. and returns to the command  mode.  If the last character transmitted was 
  325. an ASCII NULL, the modem generates the CONNECT message to the DTE and 
  326. waits for further data from the DTE while transmitting NULLs to the 
  327. remote.  If more data is received before five seconds, elapse, the modem 
  328. continues to transmit the data as described in the previous paragraph.  
  329. If five seconds elapse and no data is received from the DTE, the modem 
  330. drops carrier, goes on-hook, and generates the ERROR result code.
  331.  
  332. 6.1.9  FAX DATA RECEPTION
  333.  
  334. Fax data reception is initiated using the AT+FRM=n command.  After this 
  335. command is issued, the modem looks for carrier in the modulation scheme 
  336. specified by the parameter n. If no carrier is detected before the 
  337. period of time specified by register S7 expires, the modem generates the 
  338. NO CARRIER message and returns to command mode.  If carrier is detected 
  339. that is not the one specified by the parameter n, the modem generates 
  340. the +FCERROR message and returns to the command mode.  If the specified 
  341. carrier is detected, the modem generates the CONNECT message and enters 
  342. the data receive mode.
  343.  
  344. While in data receive mode, the modem receives data from the remote, 
  345. adds start and stop bits, and handles <DLE><chr> character pairs before 
  346. passing the data to the DTE.  The modem prefixes each <DLE> character 
  347. with another <DLE> character before sending it to the DTE.
  348.  
  349. If carrier is lost for a time period longer than the time specified by 
  350. the register S10, the modem finishes delivering the data in the receive 
  351. buffer (if any) to the DTE, sends <DLE><ETX>, generates the NO CARRIER 
  352. result code, and returns to the command mode.  All subsequent data 
  353. received from the remote is discarded.
  354.  
  355. If the modem detects a receive buffer overflow condition, it stops 
  356. receiving from the remote until there is room in the receive buffer.  
  357. The modem informs the DTE of the buffer overflow after it sends to the 
  358. DTE the last character that was stored in the buffer before the overflow 
  359. occurred.  
  360.  
  361. If the modem receives any character from the DTE after the +FRM command 
  362. (except flow control characters if software flow control is in effect), 
  363. or if the modem detects a high-to-low transition of the DTR signal while 
  364. &D1 is in effect, it sends <DLE><ETX> to the DTE, generates the OK 
  365. result code, and returns to command mode.  The receive buffer is cleared 
  366. and all data received from the remote is discarded.  If loss of DTR is 
  367. detected while &D2 is in effect, the modem goes on-hook, sends 
  368. <DLE><ETX> followed by OK result code to the DTE, and returns to command 
  369. mode.  If the modem detects a DTR drop while &D3 is in effect, the modem 
  370. performs a warm reset.
  371.  
  372. 6.2  EXAMPLES
  373.  
  374. Examples of calling (transmitting) and answering (receiving) one page 
  375. use fax class 1 commands are shown in Tables 6-3 and 6-4, respectively.
  376.  
  377. Table 6-2.  Fax Class 1 Command Definitions
  378.  
  379. Command         Description
  380.  
  381. +FCLASS=n     Select service class.  +FCLASS=n command set the active 
  382.                 service class
  383.                 Parameters: 0-2
  384.                   Default: 0
  385.                 Command options:
  386.                   +FCLASS=0    Select Data Mode
  387.                   +FCLASS=1    Select Facsimile class 1
  388.                   +FCLASS=2    Select Facsimile class 2
  389.  
  390. +F<command>?  Report Active Configuration.  +F<command>? interrogates 
  391.               the modem to determine the active configuration.  Typical 
  392.               responses are:
  393.                 +FAE?     0 if autoanswer is disabled, 1 if auto answer 
  394.                           enabled.
  395.                 +FCLASS?  0 if in data mode; 1 if in fax class 1; 2 if 
  396.                           in fax class 2
  397.  
  398. +F<command>=?  Report Operating Capabilities.  +F<command>=? can be used 
  399.                to determine the operating capabilities of the modem.
  400.                Typical responses are:
  401.                  +FAE=?    0,1
  402.                  +FCLASS=? 0,1,2
  403.                  +FTM=?    3,24,48,72,96 (RC96AC)
  404.                  +FRM=?    3,24,48,72,96 (RC96AC)
  405.                  +FTM=?    3,24,48,72,73,74,96,97,98,121,122,145,146 
  406.                            (RC144AC)
  407.                  +FRM=?    3,24,48,72,73,74,96,97,98,121,122,145,146 
  408.                            (RC144AC)
  409.  
  410. +FAEn          Data/Fax Auto Answer.  +FAEn allows the DTE to either 
  411.                restrict answering to class 1, or to automatically detect 
  412.                whether the calling station is a fax class 1 modem or 
  413.                data modem,, and answer accordingly.
  414.  
  415.                Parameters: 0,1
  416.                    Default:0
  417.                Command options:
  418.                    n=0      Disable data/fax auto answer mode (default). 
  419.                             The modem answers as a fax modem only
  420.                    n=1      Enable data/fax auto answer mode.  The modem 
  421.                             answers as a fax or data modem
  422.  
  423. +FTS=n         Stop Transmission and Wait.  +FTS=n causes the modem to 
  424.                terminate a transmission and wait for n 10 millisecond 
  425.                intervals before responding with the OK result code.  An 
  426.                ERROR response code results if this command is issued 
  427.                while the modem is on-hook.
  428.  
  429. +FRS=n         Receive Silence.  +FRS=n causes the modem to report back 
  430.                to the DTE with an OK result code after n millisecond 
  431.                intervals of silence have been detected on the line.  
  432.                This command is aborted if any character is received from 
  433.                the DTE.  The modem discards the aborting character and 
  434.                issues an OK result code.  An ERROR response code results 
  435.                if this command is issued while the mode is on-hook.
  436.  
  437. +FTM=n        Transmit Data.  +FTM=n causes the modem to transmit data 
  438.               using the modulation defined below.  An ERROR response 
  439.               code results if this command is issued while the modem is 
  440.               on-hook.
  441.  
  442.               Parameters:
  443.  
  444.               Command options:
  445.  
  446.                  +FTM=3     v.21 ch 2 300 bps
  447.                  +FTM=24    v.27 ter 2400 bps
  448.                  +FTM=48    v.27 ter 4800 bps
  449.                  +FTM=72    v.29 7200 bps
  450.                  +FTM=96    v.29 9600 bps
  451.                  +FTM=73    v.17 7200 bps long
  452.                  +FTM=74    v.17 7200 bps short
  453.                  +FTM=96    v.29 9600 bps
  454.                  +FTM=97    v.17 9600 bps long
  455.                  +FTM=98    v.17 9600 bps short
  456.                  +FTM=121   v.17 12000 bps long
  457.                  +FTM=122   v.17 12000 bps short
  458.                  +FTM=145   v.17 14400 bps long
  459.                  +FTM=146   v.17 14400 bps short
  460.  
  461. +FRM=n       Receive Data.  +FRM=n causes the modem to enter the 
  462.              receiver mode using the modulation defined below.  An ERROR 
  463.              response code results if this command is issued while the 
  464.              modem is on-hook.
  465.  
  466.              Parameters:  See Command options
  467.  
  468.               Command options:
  469.  
  470.                  +FTM=3     v.21 ch 2 300 bps
  471.                  +FTM=24    v.27 ter 2400 bps
  472.                  +FTM=48    v.27 ter 4800 bps
  473.                  +FTM=72    v.29 7200 bps
  474.                  +FTM=96    v.29 9600 bps
  475.                  +FTM=73    v.17 7200 bps long
  476.                  +FTM=74    v.17 7200 bps short
  477.                  +FTM=96    v.29 9600 bps
  478.                  +FTM=97    v.17 9600 bps long
  479.                  +FTM=98    v.17 9600 bps short
  480.                  +FTM=121   v.17 12000 bps long
  481.                  +FTM=122   v.17 12000 bps short
  482.                  +FTM=145   v.17 14400 bps long
  483.                  +FTM=146   v.17 14400 bps short
  484.  
  485. +FTH=n       Transmit data with HDLC Framing.  +FTH=n causes the modem 
  486.              to transmit data using HDLC protocol and the modulation 
  487.              defined below.  An ERROR response code results if this 
  488.              command is issued while the modem is on-hook.
  489.  
  490.              Parameters:  See Command options
  491.  
  492.               Command options:
  493.  
  494.                  +FTM=3     v.21 ch 2 300 bps
  495.                  +FTM=24    v.27 ter 2400 bps
  496.                  +FTM=48    v.27 ter 4800 bps
  497.                  +FTM=72    v.29 7200 bps
  498.                  +FTM=96    v.29 9600 bps
  499.                  +FTM=73    v.17 7200 bps long
  500.                  +FTM=74    v.17 7200 bps short
  501.                  +FTM=96    v.29 9600 bps
  502.                  +FTM=97    v.17 9600 bps long
  503.                  +FTM=98    v.17 9600 bps short
  504.                  +FTM=121   v.17 12000 bps long
  505.                  +FTM=122   v.17 12000 bps short
  506.                  +FTM=145   v.17 14400 bps long
  507.                  +FTM=146   v.17 14400 bps short
  508.  
  509. +FRH=n     Receive data with HDLC Framing.  +FRH=n causes the modem to 
  510.            receive frames using HDLC protocol and the modulation defined 
  511.            below.  An ERROR response code results if this command is 
  512.            issued while the modem is on-hook.
  513.  
  514.            Parameters:  See Command options
  515.  
  516.               Command options:
  517.  
  518.                  +FTM=3     v.21 ch 2 300 bps
  519.                  +FTM=24    v.27 ter 2400 bps
  520.                  +FTM=48    v.27 ter 4800 bps
  521.                  +FTM=72    v.29 7200 bps
  522.                  +FTM=96    v.29 9600 bps
  523.                  +FTM=73    v.17 7200 bps long
  524.                  +FTM=74    v.17 7200 bps short
  525.                  +FTM=96    v.29 9600 bps
  526.                  +FTM=97    v.17 9600 bps long
  527.                  +FTM=98    v.17 9600 bps short
  528.                  +FTM=121   v.17 12000 bps long
  529.                  +FTM=122   v.17 12000 bps short
  530.                  +FTM=145   v.17 14400 bps long
  531.                  +FTM=146   v.17 14400 bps short
  532.  
  533. Table 6-3  Fax Class 1 Calling Sequence (One Page)
  534.  
  535. |----------------------------------------------------------------------|
  536. | DTE Commands | DCE Responses    | Remote Fax      |     Notes        |
  537. |--------------|------------------|-----------------|------------------|
  538. | AT+FCLASS=1  | OK               |                 | Set to Class 1   |
  539. |----------------------------------------------------------------------|
  540. |                         PHASE A                                      |
  541. |----------------------------------------------------------------------|
  542. | ATDTx        | dials            | answers         | +FRH=3 implied by| 
  543. |              |                  |                 | dialing          |
  544. |              | CONNECT          | Send HDLC flags |                  |
  545. |----------------------------------------------------------------------|
  546. |                         PHASE B                                      |
  547. |----------------------------------------------------------------------|
  548. |              |                  | Send NSF frame  |                  |
  549. |              | <NSF>,OK         |                 |                  |
  550. | AT+FRH=3     | CONNECT          |                 |                  |
  551. |              |                  | Send CSI frame  |                  |
  552. |              | <CSI>,OK         |                 |                  |
  553. | AT+FRH=3     | CONNECT          |                 |                  |
  554. |              |                  | Send DIS frame  | Last frame bit=1 |
  555. |              | <DIS>,OK         | drop carrier    |                  |
  556. | AT+FTH=3     | Send HDLC flags  | receive flags   |                  |
  557. |              | CONNECT          |                 |                  |
  558. | <TSI>        | Send TSI frame   | Receive TSI     | Last frame bit=0 |
  559. |              | CONNECT          |                 |                  |
  560. | <DCS>        | Send DCS frame   | Recieve DCS     | Last frame bit=1 |
  561. |              | detect last frame|                 |                  |
  562. |              | bit              |                 |                  |
  563. |              | <OK>,drop carrier|                 |                  |
  564. | AT+FTS=8     | <OK>,wait 80ms   |                 |                  |
  565. | AT+FTM=96    | send v.29        |                 |                  |
  566. |              | CONNECT          |                 |                  |
  567. | <TCF>        | Send TCF data    | Receive & check |                  |
  568. | AT+FRH=3     | CONNECT          |                 |                  |
  569. |              | Send CFR frame   |                 | Last frame bit=1 |
  570. | <CFR>,OK     | drop carrier     |                 |                  |
  571. |              | OK               |                 |                  |
  572. |----------------------------------------------------------------------|
  573. |                        PHASE C                                       |
  574. |----------------------------------------------------------------------|
  575. | AT+FTM=96    | send v.29        |                 |                  |
  576. |              | CONNECT          |                 |                  |
  577. | age data     | send page data   | receive data    |                  |
  578. |              | OK               |                 |                  |
  579. | AT+FTH=3     | send HDLC flags  | receive flags   |                  |
  580. |              | CONNECT          |                 |                  |
  581. |----------------------------------------------------------------------|
  582. |                        PHASE D                                       |
  583. |----------------------------------------------------------------------|
  584. | <EOP>        | send EOP frame   | receive EOP     | Last frame bit=1 |
  585. |              | OK,drop carrier  |                 |                  |
  586. | AT+FRH=3     | CONNECT          |                 |                  |
  587. |              |                  | send MCF frame  | Last frame bit=1 |
  588. |              | <MCF>,OK         |                 |                  |
  589. | AT+FTH=3     | send HDLC flags  | receive flags   |                  |
  590. |              | CONNECT          |                 |                  |
  591. | <DCN>        | send DCN frame   | receive DCN     | Last frame bit=1 |
  592. |              | OK,drop carrier  |                 |                  |
  593. |----------------------------------------------------------------------|
  594. |                        PHASE E                                       |
  595. |----------------------------------------------------------------------|
  596. | ATH0         | OK,hang up       | hang up         |                  |
  597. |----------------------------------------------------------------------|
  598.  
  599. Table 6-4  Fax Class 1 Answering Sequence (One Page)
  600.  
  601. |----------------------------------------------------------------------|
  602. | DTE Commands | DCE Responses    | Remote Fax      |     Notes        |
  603. |--------------|------------------|-----------------|------------------|
  604. | AT+FCLASS=1  | OK               |                 |                  |
  605. |----------------------------------------------------------------------|
  606. |                        PHASE A                                       |
  607. |----------------------------------------------------------------------|
  608. |              |                  | Fax machine dial|                  |
  609. |              | RING             |                 |                  |
  610. | ATA          | modem answers    |                 |                  |
  611. |              | send HDLC flags  | receive flags   | +FTH=3 implied by|
  612. |              |                  |                 | answering        |
  613. |              | CONNECT          |                 |                  |
  614. |----------------------------------------------------------------------|
  615. |                        PHASE B                                       |
  616. |----------------------------------------------------------------------|
  617. | <NSF>        | send NSF frame   | receive NSF     | last frame bit=0 |
  618. |              | CONNECT          |                 |                  |
  619. | <CSI>        | send CSI frame   | receive CSI     | last frame bit=0 |
  620. |              | CONNECT          |                 |                  |
  621. | <DSI>        | send DSI frame   | receive DSI     | last frame bit=1 |
  622. |              | OK, drop carrier |                 |                  |
  623. | AT+FRH=3     | CONNECT          |                 |                  |
  624. |              |                  | send TSI frame  | last frame bit=0 |
  625. |              | <TSI>,OK         |                 |                  |
  626. | AT+FRH=3     | CONNECT          |                 |                  |
  627. |              |                  | send DCS frame  | last frame bit=1 |
  628. |              | <DCS>,OK         | drop carrier    |                  |
  629. | AT+FRM=96    |                  |                 |                  |
  630. |              |                  | send v.29       |                  |
  631. |              | CONNECT          | send TCF frame  |                  |
  632. |              | <TCF>            | drop carrier    |                  |
  633. |              | NO CARRIER       |                 |                  |
  634. | AT+FTH=3     | CONNECT          |                 |                  |
  635. | <CFR>        | send CFR frame   | receive CFR     | last frame bit=1 |
  636. |              | OK,drop carrier  |                 |                  |
  637. |----------------------------------------------------------------------|
  638. |                        PHASE C                                       |
  639. |----------------------------------------------------------------------|
  640. | AT+FRM=96    |                  |                 |                  |
  641. |              |                  | send page data  |                  |
  642. |              | <page data>      | drop carrier    |                  |
  643. |              | NO CARRIER       |                 |                  |
  644. |----------------------------------------------------------------------|
  645. |                        PHASE D                                       |
  646. |----------------------------------------------------------------------|
  647. | AT+FRH=3     | CONNECT          |                 |                  |
  648. |              |                  | send EOP frame  | last frame bit=1 |
  649. |              | <EOP>,OK         |                 |                  |
  650. | AT+FTH=3     | CONNECT          |                 |                  |
  651. | <MCF>        | send MCF frame   | receive MCF     | last frame bit=1 |
  652. |              | OK,drop carrier  |                 |                  |
  653. | AT+FRH=3     | CONNECT          |                 |                  |
  654. |              |                  | send DCN frame  | last frame bit=1 |
  655. |              | <DCN>,OK         |                 |                  |
  656. |----------------------------------------------------------------------|
  657. |                        PHASE E                                       |
  658. |----------------------------------------------------------------------|
  659. | ATH0         | OK,hang up       | hang up         |                  |
  660. |----------------------------------------------------------------------|
  661.